package com.bjpowernode.security04mysql.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bjpowernode.security04mysql.domain.SysUser;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_user】的数据库操作Mapper
* @createDate 2025-07-26 10:22:29
* @Entity com.bjpowernode.security04mysql.domain.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 根据用户名查询用户信息
     */
    SysUser findByUsername(String username);

    /**
     * 根据用户名id查询用户权限
     */
    List<String> findPermissionsByUserId(Integer userId);
}




